How to connect to mysql from nodejs, with ES6 promise
Introduction I had to develop a small automation to query some old mysql data…
April 09, 2018
While dealing with ELastic Search documents, you faced this issue while updating document:
ElasticSearch: Validation Failed: 1: script or doc is missing;
But, when you want to update the documents. There is a slight change in json. See example:
{
index: 'your_index_name',
type: 'your_type',
id: 'document_id',
body: {
doc: {
title: 'this is my sample title',
createdAt: 'some_date'
}
},
refresh: true
}
Notice the extra “doc” in there. Generally, users tend to put json without “doc”, and it caused this error.
Enjoy!
Introduction I had to develop a small automation to query some old mysql data…
Introduction to Problem I have some data related to users. For example: which…
Introduction In this post, we will see how we can build FIPS enabled openssl in…
Read file all in one shot Above code read whole file at once, but if the files…
Introduction Drupal is an awesome CMS. Drupal content type form, allows you to…
The simplest way to install driver for php is using pecl. When I tried to run…
Introduction In this post we will see following: How to schedule a job on cron…
Introduction There are some cases, where I need another git repository while…
Introduction In this post, we will see how to fetch multiple credentials and…
Introduction I have an automation script, that I want to run on different…
Introduction I had to write a CICD system for one of our project. I had to…
Introduction Java log4j has many ways to initialize and append the desired…